/* 现代化全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

#app {
  height: 100%;
  min-height: 100vh;
}

/* 现代化配色方案 */
:root {
  /* Softer, comfortable slate theme */
  --primary-color: #6b7cff;
  --primary-light: #8b98ff;
  --primary-dark: #5566e6;
  --secondary-color: #93a1b7;
  --accent-color: #22c55e;
  --success-color: #16a34a;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --text-primary: #e8ecf6;
  --text-secondary: #cbd3e6;
  --text-light: #a7b2cc;
  --bg-primary: #1b2433;
  --bg-secondary: #121826;
  --bg-tertiary: #202a3c;
  --border-color: #2b3447;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 26px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.35);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
}

/* 现代化卡片样式 */
.modern-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* 现代化按钮样式 */
.modern-btn {
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  position: relative;
  overflow: hidden;
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.modern-btn:hover::before {
  left: 100%;
}

/* 渐变背景 */
.gradient-bg {
  background: radial-gradient(800px 400px at 20% -10%, rgba(107,124,255,0.18), transparent),
              radial-gradient(600px 300px at 80% 10%, rgba(34,197,94,0.10), transparent);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 玻璃态效果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .modern-card {
    border-radius: var(--radius-lg);
    margin: 0 16px;
  }
}

/* Element Plus 组件样式覆盖 */
.el-card {
  border: 1px solid var(--border-color) !important;
  background: var(--bg-primary) !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text-primary) !important;
}

.el-button {
  border-radius: var(--radius-lg) !important;
  font-weight: 600 !important;
}

.el-button--primary {
  background: var(--primary-color) !important;
  border: 1px solid var(--primary-dark) !important;
}

.el-button--primary:hover {
  background: var(--primary-dark) !important;
  box-shadow: var(--shadow-md);
}

.el-input__wrapper {
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
  background: #0f172a !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
}

.el-table {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

.el-table th {
  background: #0f1a2f !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

.el-upload-dragger {
  border-radius: var(--radius-lg) !important;
  border: 1px dashed var(--border-color) !important;
  transition: background 0.2s ease !important;
  background: #0f172a !important;
  color: var(--text-secondary) !important;
}

.el-upload-dragger:hover {
  border-color: var(--primary-color) !important;
  background: #0e1630 !important;
}